﻿using DataServer.CommonLib.Models.DataSource;
using Swimj.CommonLib.Base;

namespace Config.RazorLib.Services
{
    public interface IDataSourceService
    {
        // [Get("/api/v1/datasources")]
        Task<PaginatedResult<DataSourceInfoResponseDto>?> QueryDataSourcesByPage(DataSourceSearchRequestDto searchRequestDto);

        // [Put("/api/v1/datasources/{id}")]
        Task<Result<DataSourceInfoResponseDto>> UpdateDataSource(Guid id, DataSourceEditRequestDto editRequestDto);

        // [Post("/api/v1/datasources")]
        Task<Result<DataSourceInfoResponseDto>> CreateDataSource(DataSourceEditRequestDto editRequestDto);

        // [Get("/api/v1/datasources/{id}")]
        Task<Result<DataSourceInfoResponseDto>> GetDataSource(Guid id);
    }
}